import { getRequest,postRequest } from '/src/lib/axios';

export const accountmentapi = {
    // 表格数据查询
    getaccountFetch: (param) => {
        return getRequest('/accounts/fetch', param);
    },
    
    generate:(param)=>{
        return getRequest('/accounts/generate', param);
    },
    randomPassword:(param)=>{
        return getRequest('/users/randomPassword', param);
    },
    info:(id)=>{
        return getRequest(`/accounts/get/${id}`);
    },
    updateStatus:(param)=>{
        return getRequest(`/accounts/updateStatus`,param);
    },
    update:(param)=>{
        return postRequest(`/accounts/update`,param);
    },
    add:(param)=>{
        return postRequest(`/accounts/add`,param);
    },
    delete:(param)=>{
        return getRequest(`/accounts/delete`,param);
    }
};
